Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle exceptions in runtime service so unittest can catch them #813

Merged
merged 6 commits into from
Nov 28, 2023

Conversation

weidel-p
Copy link
Contributor

Issue Number: https://github.com/intel-collab/frameworks.ai.lava.lava-loihi/issues/393

Objective of pull request:
Unittests were not able to catch exceptions thrown in the runtime service. In this PR, exceptions in the runtime service are passed to the main process such that unittests can catch them. This PR enables tests involving unittest.assertRaises

Pull request checklist

Your PR fulfills the following requirements:

  • Issue created that explains the change and why it's needed
  • Tests are part of the PR (for bug fixes / features)
  • Docs reviewed and added / updated if needed (for bug fixes / features)
  • PR conforms to Coding Conventions
  • PR applys BSD 3-clause or LGPL2.1+ Licenses to all code files
  • Lint (flakeheaven lint src/lava tests/) and (bandit -r src/lava/.) pass locally
  • Build tests (pytest) passes locally

Pull request type

Please check your PR type:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation changes
  • Other (please describe):

What is the current behavior?

What is the new behavior?

Does this introduce a breaking change?

  • Yes
  • No

Supplemental information

@PhilippPlank PhilippPlank merged commit b2c8134 into main Nov 28, 2023
6 checks passed
@PhilippPlank PhilippPlank deleted the fix/learning_multilayer_wo_core_0 branch November 28, 2023 10:38
@PhilippPlank PhilippPlank restored the fix/learning_multilayer_wo_core_0 branch November 28, 2023 10:38
@PhilippPlank PhilippPlank deleted the fix/learning_multilayer_wo_core_0 branch November 28, 2023 10:38
monkin77 pushed a commit to monkin77/thesis-lava that referenced this pull request Jul 12, 2024
…-nc#813)

* handle exceptions in runtime service so unittest can catch them

* lint

* Update multiprocessing.py

Added typing

* Update multiprocessing.py

* Update multiprocessing.py

* add queue per actor

---------

Co-authored-by: PhilippPlank <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants